﻿using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.Text;


class MainMeunSceneState : ISceneState
{
    public MainMeunSceneState(SceneStateController controller) : base("MainMenuScene", controller)
    {
    }

    public override void StateStart()
    {
        GameObject.Find("StartButton").GetComponent<Button>().onClick.AddListener(OnStartButtonClick);
    }

    /// <summary>
    /// 点击开始游戏按钮跳转战斗页面
    /// </summary>
    private void OnStartButtonClick()
    {
        mController.SetState(new BattleSceneState(mController));
    }
}
 
